
<body class="body" ng-controller="paymentPageCtrl">
<link  type="text/css" rel="stylesheet" href="../css/paymentPage.css"/>
<div class="bodyHeader">
    <button  class="label publicStyle1" ng-click="jumpShoppingListPage()">Let's Go</button>
    <button  class="publicStyle1 publicStyle2" ng-click="jumpHomePage()">主页</button>
    <button  class="publicStyle1 publicStyle2" ng-click="jumpShoppingListPage()">商品列表</button>
    <button  class="shoppingCart"><img src="../png/shoppingCart.png" class="img">购物车(<a ng-bind="showCartCount()" ng-model="cartCount">{{cartCount}}</a>)</button>
</div>
<div  class="mainTable">
    <div  class="publicCss">购物清单</div>
    <div id="time">{{date |date:'yyyy年MM月dd日 HH:mm:ss'}}</div>
    <table  class="table">
        <th class="tableWidth1">分类</th>
        <th class="tableWidth2">名称</th>
        <th class="tableWidth2">单价（元）</th>
        <th class="tableWidth1">单位</th>
        <th class="tableWidth1">数量</th>
        <th>小计</th>
        <tr ng-repeat="itemInfo in cartList" ng-show="itemInfo.count>0">
            <td>{{itemInfo.classification}}</td>
            <td>{{itemInfo.itemName}}</td>
            <td>{{itemInfo.price}}</td>
            <td>{{itemInfo.unit}}</td>
            <td>{{itemInfo.count}}</td>
            <td>{{itemInfo.actuallyPaid+"元"}}<a ng-show="itemInfo.promotionCount>0">{{"(原价:"+itemInfo.costPrice+"元)"}}</a></td>
        </tr>
    </table>
    <div  ng-model="savePrice" ng-show="savePrice>0">
        <div class="publicCss freeItems">赠送商品</div>
        <table  class="table tableMargin">
            <th>分类</th>
            <th>名称</th>
            <th>数量</th>
            <tr ng-repeat="itemInfo in cartList" ng-show="itemInfo.promotionCount>0">
                <td>{{itemInfo.classification}}</td>
                <td>{{itemInfo.itemName}}</td>
                <td>{{itemInfo.promotionCount}}</td>
            </tr>
        </table>
    </div>
    <p>总计:<a ng-bind="showSumPrice()"  ng-model="sumPrice">{{sumPrice}}</a>元</p >
    <p ng-show="savePrice>0">节省:<a ng-bind="showSumSavePrice()" ng-model="savePrice" >{{savePrice}}</a>元</p>
    <button class="confirm" ng-click="addButtonEvent()">确认</button>
</div>
</body>
